home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / g / gnu_c / incl98.zoo / mouse.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-10  |  414 b   |  25 lines

  1. #ifndef _MOUSE_H
  2. #define _MOUSE_H
  3.  
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7.  
  8. /* header file for mouse access */
  9.  
  10. struct mouse_buf {
  11.     int m_buttons;    /* button states */
  12.     int m_dx;    /* change in x since last read */
  13.     int m_dy;    /* change in y since last read */
  14. };
  15.  
  16. #define M_LEFT_BUTTON    0x02
  17. #define M_RIGHT_BUTTON    0x01
  18. #define M_MID_BUTTON    0x00    /* there is none! */
  19.  
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23.  
  24. #endif /* _MOUSE_H */
  25.